<!DOCTYPE html>
<html>
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="zh-cn" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo Yii::app()->name ?> </title>
      <style type="text/css" media="screen">
        form{
          max-width: 550px;
          padding: 19px 29px 29px;
          margin: 0 auto 20px;
          background-color: #fff;
          border: 1px solid #e5e5e5;
        }
         body {
          padding-top: 40px;
          padding-bottom: 40px;
          background-color: #f5f5f5;
        }
    </style>
  </head>
  <body>
   <div class="container">
   	<?php $form=$this->beginWidget('CActiveForm', 
      array("id"=>'login-form',
      'enableClientValidation'=>true,
      'clientOptions'=>array(
        'validateOnSubmit'=>true,
      ),
      'enableAjaxValidation'=>true,
      "htmlOptions"=>array(
          "class"=>"form-horizontal")
    )); ?>
      	<p class="lead text-center">管理后台</p>
   		  <?php echo $form->errorSummary($model,null,null,array("class"=>'alert alert-error')); ?>
   		  
        <div class="control-group">
          <label class="control-label">用户名: </label>
          <div class="controls">
            <?php echo $form->textField($model,"username") ?>
            <?php $form->error($model,'username',array('class'=>'help-inline')); ?>
          </div>
        </div>
        <div class="control-group">
          <label class="control-label">密  码: </label>
          <div class="controls">
            <?php echo  $form->passwordField($model,"password") ?>
            <?php  $form->error($model,'password',array('class'=>'help-inline')); ?>
          </div>
        </div>
         <div class="control-group">
          <div class="controls">
            <?php echo CHtml::submitButton('登录',array("class"=>'btn')); ?>
          </div>
         </div>
     <?php $this->endWidget(); ?>
   </div> 
  </body>
</html>